package com.aimo.base.exceptiondemo.http;

public enum HttpStatus {
    SC_OK("200", "成功"),
    SC_INTERNAL_SERVER_ERROR("500", "未知异常，请联系管理员"),
    NULL_POINTER("1000", "请检查您的数据正确性"),
    ERROR_PARAM("1001", "请检查您的传入参数"),
    ERROR_AUTH("1002", "没有权限");

    private HttpStatus(String value, String name) {
        this.value = value;
        this.name = name;
    }

    private final String value;
    private final String name;

    public String getValue() {
        return value;
    }

    public String getName() {
        return name;
    }
}